<include file='Common:header'/>
	<link rel="stylesheet" href="__PUBLIC__/Css/list.css" />
</head>
<body>
	<include file='Common:top'/>
	<div id='location'>
		<a href="{:U('List/index')}">全部分类</a>
		<if condition='isset($_GET["id"])'>&nbsp;&gt;&nbsp;
			<location cid='$_GET["id"]'>
				<if condition='$id == $_GET["id"]'>
					{$name}
				<else/>
					<a href="{:U('List/index', array('id' => $id))}">{$name}</a>&nbsp;&gt;&nbsp;
				</if>
			</location>
		</if>
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
					<foreach name='cate' item='v'>
						<li>
							<a href="{:U('index', array('id' => $v['id']))}">{$v.name}</a>
						</li>
					</foreach>
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li <if condition='$filter eq 0'>class='on'</if>>
						<a href="{:U('index', array('id' => $cateid))}">待解决问题</a>
					</li>
					<li <if condition='$filter eq 1'>class='on'</if>>
						<a href="{:U('index', array('id' => $cateid,'filter' => 1))}">已解决</a>
					</li>
					<li <if condition='$filter eq 2'>class='on'</if>>
						<a href="{:U('index', array('id' => $cateid,'filter' => 2))}">高悬赏</a>
					</li>
					<li class='last <if condition="$filter eq 3">on</if>'>
						<a href="{:U('index', array('id' => $cateid,'filter' => 3))}">零回答</a>
					</li>
				</ul>
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
					<foreach name='ask' item='v'>
						<tr>
							<td class='t1 cons'>
								<a href="{:U('Show/index', array('id' => $v['id']))}">
									<if condition='$v["reward"] gt 0'><b>{$v.reward}</b></if>{$v.content}</a>&nbsp;&nbsp;[{$v.name}]
							</td>
							<td>{$v.answer}</td>
							<td>{$v.time|time_format=###}</td>
						</tr>
					</foreach>
					<tr class='page'>
						<td colspan='3'>{$page}</td>
					</tr>
				</table>
			</div>
		</div>

		<include file='Common:right'/>
	</div>
<!--------------------中部结束-------------------->
<include file='Common:bottom'/>